﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Models;
public class InitData
{
      
    public static void InitPersonData()
    {
        GamePerson p = new GamePerson();
        p.key = "1";
        p.ability = new ResistanceAbility(5, 5, 5, 5, 1, 1, 1);
        p.pbase = new PersonBase("雷班纳", "主角", "头像图片.png", 80, 80, 1, 200);
        p.point = new PersonPoint(5, 3);

        PersonZhuangBeiItem dg = new PersonZhuangBeiItem("弹弓", "弹弓子弹", 3, 0, PersonZhuangBeiType.Wuqi , "弹弓初始化装备",10,5 );

        PersonZhuangBeiItem dg4 = new PersonZhuangBeiItem("短枪", "短枪子弹", 5, 0, PersonZhuangBeiType.Wuqi, "短枪初始化装备", 10, 5);


        PersonZhuangBeiItem y1 = new PersonZhuangBeiItem("皮衣", "ss", 0, 2, PersonZhuangBeiType.Yifu, "皮衣初始化装备", 10, 5);

        PersonZhuangBeiItem k2 = new PersonZhuangBeiItem("迷彩裤", "ss", 0, 3, PersonZhuangBeiType.Kuzi, "迷彩裤初始化装备", 10, 5);

        PersonZhuangBeiItem x3 = new PersonZhuangBeiItem("布鞋", "ss", 0, 2, PersonZhuangBeiType.Xiezi, "布鞋初始化装备", 10, 5);



        p.zb_bag = new PersonZhuangBeiBag();
        p.zb_bag.bag.Add(0, dg);
        p.zb_bag.bag.Add(1, y1);
        p.zb_bag.bag.Add(2, k2);
        p.zb_bag.bag.Add(3, x3);
        p.zb_bag.bag.Add(4, dg4);


        GameDataManager.Instance.AddGamePerson(   p );
    }


    public static void InitTalkKeyValue()
    {
        TalkKeyValue tk = new TalkKeyValue("拉多村2楼与爸爸对话", false);
        TalkKeyValue tk2 = new TalkKeyValue("拉多村南地洞与红狼对话", false);
        TalkKeyValue tk3 = new TalkKeyValue("发现1号战车的对话", false);

        GameDataManager.Instance.AddTalkKeyValue(tk.key, tk);

        GameDataManager.Instance.AddTalkKeyValue(tk2.key, tk2);

        GameDataManager.Instance.AddTalkKeyValue(tk3.key, tk3);

    }


}

